<!DOCTYPE html>
<html>
	<head>
	    <meta charset="utf-8">
	    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
	    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
	    <title>Hello APP</title>
	    <link rel="stylesheet" type="text/css" href="../../css/index.css" />
	</head>
	<style type="text/css">
		.warp{width: 100%;}

		.tishi{width: 100%;height: 50px;background:#F6F6F6;color: #FF9502;line-height: 50px;padding: 0 15px 0 40px;box-sizing: border-box;font-size: 13px;background: url(../../image/main3/gth.png) no-repeat left 15px center;background-size:19px;}
		.tishi2{font-size: 12px;color: #666666;padding: 0 15px;box-sizing: border-box;margin-top: 40px;text-align: justify;}

		.info-box{width: 100%;background: #FFFFFF;padding: 0 15px;box-sizing: border-box;}
		.info-box .info-one{align-items: center;height: 50px;}
		.info-box .info-one input{text-align: right;padding: 10px 0;line-height: 30px;box-sizing: border-box;}

		.shouhuo-btn{height: 45px;background:#FF9502;height: 45px;border-radius:4px;
		text-align: center;line-height: 45px;font-size: 18px;color: #FFFFFF;margin: 30px;}

	</style>
	<body>
		<div id="vue" class="warp">

			<div class="tishi">请填写实名信息，并使用实名人的账户付款</div>
	        <div class="info-box">
	        	<div class="info-one flex">
	        		<div class="text">姓名</div>
	        		<input class="flex1" type="text" maxlength="5" id="name" placeholder="请输入付款账户的真实姓名" />
	        	</div>
	        	<div class="info-one flex">
	        		<div class="text">身份证</div>
	        		<input class="flex1" type="text" maxlength="18" id="sfhao" placeholder="请输入付款账户的身份证码" />
	        	</div>
	        </div>
	        <div class="tishi2">
	        	根据海关规定，购买跨境商品需要办理清关手续，为确保您能够顺利收到您购买的商品，请填写订购人和收件人的真实姓名和身份证号（逸果商城承诺，您提供的身份证信息只用于办理跨境商品的清关手续，不做他用，其他任何人均无法查看）
	        </div>
			<div class="shouhuo-btn" tapmode onclick="upData()">保存</div>

		</div>
	</body>
</html>
<script type="text/javascript" src="../../script/base.min.js" id="loadjs" data-js="L/swiper.min,L/lazyload,L/h-tool"></script>
<script type="text/javascript">
	define(function (require, exports, module) {

		// 提交更换的手机信息
		upData = function (){
			var data = {};
			data.uname = $('#name').val();
			data.sfhao = $('#sfhao').val();
			if(!data.uname) {
				lanYun.toast('请输入姓名');
				return;
			}
			if(!data.sfhao) {
				lanYun.toast('请输入身份证号');
				return;
			}
			// if(!TOOL.check.isMobile(data.sfzhao)){
	        //     lanYun.toast('请输入正确的身份证号');
	        //     return;
	        // }
			//console.log(JSON.stringify(data));
			lanYun.post('user/editshimin', data ,function (ret) {
				//console.log(JSON.stringify(ret));
				if(ret.errcode == 0){
					lanYun.setStorage('reshpage',1);
					lanYun.updateUdata(ret.data, 1);
					api.closeWin();
				}else {
					lanYun.toast(ret.msg);
				}
			});
		}

	});
</script>
